/**
 * 
 */
package br.com.devschool.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import br.com.devschool.util.BaseEntity;

/**
 * @author ATILLA
 *
 */

@Entity
@Table(name="frequencia_aluno")
public class FrequenciaAluno extends BaseEntity implements Serializable {

	private static final long serialVersionUID = -3173679910149973466L;

	private boolean 	presenca;
	private Calendario	calendario;
	private Matricula	matricula;
	
	public FrequenciaAluno(Integer id, boolean presenca, Calendario calendario,
			Matricula matricula) {
		super(id);
		this.presenca 	= presenca;
		this.calendario = calendario;
		this.matricula 	= matricula;
	}
	
	public FrequenciaAluno() { }

	public boolean isPresenca() {
		return presenca;
	}

	public void setPresenca(boolean presenca) {
		this.presenca = presenca;
	}

	@ManyToOne
	@JoinColumn(name="id_calendario")
	public Calendario getCalendario() {
		return calendario;
	}

	public void setCalendario(Calendario calendario) {
		this.calendario = calendario;
	}

	@ManyToOne
	@JoinColumn(name="id_matricula")
	public Matricula getMatricula() {
		return matricula;
	}

	public void setMatricula(Matricula matricula) {
		this.matricula = matricula;
	}
	
}
